package com.tenbent.product.center.insures.dto.search;

import com.tenbent.product.base.dto.search.BaseSearchPageDto;
import com.tenbent.product.base.query.page.Pageable;
import com.tenbent.product.center.insures.bo.Product;

/**
 * 查询查询DTO
 *
 * @author Randy
 *
 *         Created by ThinkPad on 2017/8/23.
 */
public class ProductSearchPageDto extends BaseSearchPageDto {

	/** 产品编码 **/
	private String pdCode;

	/** 产品名称 **/
	private String pdName;

	/** 产品状态(1 启用 2 停用) **/
	private Integer status;

	/** 产品分类ID **/
	private Integer categoryId;

	/** 保险公司ID **/
	private Integer insurerId;

	/** 出单类型(1 线上 2 线下) **/
	private Integer outType;

	@Override
	public Pageable transToPageable() {
		Product product = new Product();
		product.setId(this.getId());
		product.setPdCode(this.getPdCode());
		product.setPdName(this.getPdName());
		product.setStatus(this.getStatus());
		product.setCategoryId(this.getCategoryId());
		product.setInsurerId(this.getInsurerId());
		product.setOutType(this.getOutType());
		Pageable pageable = new Pageable(this.getPageNum(), this.getPageSize());
		pageable.setParamBizObject(product);
		return pageable;
	}

	public String getPdCode() {
		return pdCode;
	}

	public void setPdCode(String pdCode) {
		this.pdCode = pdCode;
	}

	public String getPdName() {
		return pdName;
	}

	public void setPdName(String pdName) {
		this.pdName = pdName;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Integer getCategoryId() {
		return categoryId;
	}

	public void setCategoryId(Integer categoryId) {
		this.categoryId = categoryId;
	}

	public Integer getInsurerId() {
		return insurerId;
	}

	public void setInsurerId(Integer insurerId) {
		this.insurerId = insurerId;
	}

	public Integer getOutType() {
		return outType;
	}

	public void setOutType(Integer outType) {
		this.outType = outType;
	}
}
